package qj.util.ui.desktop;

import java.awt.Point;

import qj.ui.DesktopUI4;
import qj.util.funct.P0;

public class MousePosChanger implements P0 {
	final Point[] points;
	int index = -1;
	public MousePosChanger(Point... points) {
		this.points = points;
	}
	public void e() {
		index++;
		if (index>= points.length) {
			index = 0;
		}
		DesktopUI4.mouseMove(points[index]);
	}
}